/*
 * @Descripttion:
 * @LastEditors: xzh
 * @LastEditTime: 2023-09-19 19:07:01
 */
import { btnTypeEnum, tableTool_Inf } from "@/components/dile-table/index.type";
import OrganizeManagePower_Constants from "../power-organizeManage";

/*
 * @Descripttion:生产工单权限常量
 * @LastEditors: xzh
 * @LastEditTime: 2023-08-19 14:12:41
 */
export default class productOrderManagePower_Constants extends OrganizeManagePower_Constants {
  /**
   * @Author: xzh
   * @Descripttion: 生产工单工具类
   * @Param:
   */
  static productOrderTools: Array<tableTool_Inf> = [
    {
      // t("table.btnArr.add"),
      label: "table.btnArr.add",
      code: "add",
      btnType: btnTypeEnum.button,
      plain: false,
      customBehavior: true,
    },
    {
      // t("table.btnArr.edit"),
      label: "table.btnArr.edit",
      code: "edit",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.delete"),
      label: "table.btnArr.delete",
      code: "delete",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("page.productOrderManageArr.productOrderArr.btnArr.merge"),
      label: "page.productOrderManageArr.productOrderArr.btnArr.merge",
      code: "merge",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("page.productOrderManageArr.productOrderArr.btnArr.split"),
      label: "page.productOrderManageArr.productOrderArr.btnArr.split",
      code: "split",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.import"),
      label: "table.btnArr.import",
      code: "import",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
  ];
  /**
   * @Author: xzh
   * @Descripttion: 用料记录
   * @Param:
   */
  static materialRecordTools: Array<tableTool_Inf> = [
    {
      // t("page.productOrderManageArr.materialRecordArr.btnArr.record"),
      label: "page.productOrderManageArr.materialRecordArr.btnArr.record",
      code: "record",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("page.productOrderManageArr.materialRecordArr.btnArr.picking"),
      label: "page.productOrderManageArr.materialRecordArr.btnArr.picking",
      code: "picking",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.view"),
      label: "table.btnArr.view",
      code: "view",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("table.btnArr.import"),
      label: "table.btnArr.import",
      code: "import",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
  ];
  /**
   * @Author: xzh
   * @Descripttion: 工单作业
   * @Param:
   */
  static workOrderTools: Array<tableTool_Inf> = [
    {
      // t("page.productOrderManageArr.workOrderArr.btnArr.moldBind"),
      label: "page.productOrderManageArr.workOrderArr.btnArr.moldBind",
      code: "moldBind",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("page.productOrderManageArr.workOrderArr.btnArr.start"),
      label: "page.productOrderManageArr.workOrderArr.btnArr.start",
      code: "start",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("page.productOrderManageArr.workOrderArr.btnArr.reportWork"),
      label: "page.productOrderManageArr.workOrderArr.btnArr.reportWork",
      code: "reportWork",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("page.productOrderManageArr.workOrderArr.btnArr.complete"),
      label: "page.productOrderManageArr.workOrderArr.btnArr.complete",
      code: "complete",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("page.productOrderManageArr.workOrderArr.btnArr.suspend"),
      label: "page.productOrderManageArr.workOrderArr.btnArr.suspend",
      code: "suspend",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("page.productOrderManageArr.workOrderArr.btnArr.restore"),
      label: "page.productOrderManageArr.workOrderArr.btnArr.restore",
      code: "restore",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
    {
      // t("page.productOrderManageArr.workOrderArr.btnArr.reportWorkDetail"),
      label: "page.productOrderManageArr.workOrderArr.btnArr.reportWorkDetail",
      code: "reportWorkDetail",
      btnType: btnTypeEnum.button,
      customBehavior: true,
    },
  ];
}
